package com.ynet.middleground.approve.bean;

import javax.validation.constraints.NotBlank;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 任务处理请求类
 * @date 2019-10-17 17:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "任务处理请求对象", description = "涉及相关任务处理服务的服务，如：签收任务、反签收(归还组)任务")
public class ProcessTaskReq extends BaseReqObj {

    private static final long serialVersionUID = -208716832646742017L;

    @ApiModelProperty(value = "任务ID", notes = "任务ID", dataType = "String", required = true)
    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    @ApiModelProperty(value = "处理人", notes = "一般指流程任务的处理人", dataType = "String", required = true)
    @NotBlank(message = "处理人不能为空")
    private String assignee;

    @ApiModelProperty(value = "机构id，指用户所属机构公司\n一般需要填写该字段，用于区分用户跨多个机构", notes = "机构id", dataType = "Integer")
    private Integer organId;

}
